home *** CD-ROM | disk | FTP | other *** search
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Newsgroups: comp.lang.c
- Subject: Re: dbl precision?
- Date: 4 Mar 1996 23:51:36 GMT
- Organization: Ripco Communications, Inc.
- Message-ID: <4hfvm8$o8p@gail.ripco.com>
- NNTP-Posting-Host: foley.ripco.com
-
- fsajb4@aurora.alaska.edu (BURMAN ADLAI J) in
- <4h3epi$utu@news.alaska.edu> asks:
-
- >Could some kind soul explain to a C novice how to extend the precision of
- >floating point numbers? You help would be greatly appreciated.
-
- There are three floating types (each is a subset of the one below it):
-
- type example of restrictions
- constant: (check your float.h)
- digits epsilon
- float 1.0F >= 6 1E-5
- double 1.0 >= 10 1E-9
- long double 1.0L >= 10 1E-9
-
- Most implementations provide more digits of precision than the
- above, and provide more for long double than for double.
-
- Most implements provide increasing ranges for the powers of 10 which
- can be represented, but all must include 1E-37 and 1E37).
-
- epsilon is the smallest value for which 1. and 1.+epsilon are different
- numbers.
-
- If long double is insufficient for your needs, you need to look into some
- of the extended precision libraries.
-
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-